﻿<#include "/view/common/command/para.html">
<div class="zs-ibox" id="validationList">
    <input type="button" value="返回" class="zs-btn" ng-click="goback()" ng-show="needGoback" style="float: right;position: absolute;right: 0;">
	<table class="zs-form-tab">
        <tbody>
				 <tr>
		      		<td class="right" style="width:120px;">统计周期：</td>
					<td>
						<input name="dataType" value="week" class="zs-btn radio_btn" type="radio"  style="padding-right: 2px" 
							ng-change="dataTypeChange('week')" ng-model="dataType" />周</label>
						<input name="dataType" value="month" class="zs-btn radio_btn" type="radio" style="padding-right: 2px" 
							ng-change="dataTypeChange('month')" ng-model="dataType" />月</label> 
					</td>
	      	    </tr>      
		        <tr>
	        		<td class="right">时间：</td>
				  <td ng-show="dataType=='week'">
			             <select class="form-control" ng-model="selectYear" ng-options="year.value as year.name for year in yearlist" ng-change="changeYear(selectYear)"></select>
					     <select class="form-control" ng-model="selectWeek" ng-options="week.value as week.name for week in weeklist"></select>
			             <input type="button" value="查询" class="zs-btn" ng-click="getMonitorDataValidationStatisticsTotal('0')">  
		           </td>
	           	    <td ng-show="dataType=='month'">
	        		<label>&nbsp;年份</label>
	        		<ag-Combobox name="YEAR" ng-model="queryObject.queryMonitorDataValidation.MEASURE_YEAR"  
                            text-Value="" table-name="" domain-name="" dynamic="false"  style="width:80px" 
                            data=<@domain addSpaceItem="true" tableName="data_defulatdomain" domainName="EVERY_YEAR">${data}</@domain> />                           
             		</ag-Combobox>
	        	
			        <label>&nbsp;&nbsp;&nbsp;月份：   </label> &nbsp;
			        <select class="form-control" ng-model="queryObject.queryMonitorDataValidation.MEASURE_START_MONTH">
					  <option value="1">1月</option>
					  <option value="2">2月</option>
					  <option value="3">3月</option>
					  <option value="4">4月</option>
					  <option value="5">5月</option>
					  <option value="6">6月</option>
					  <option value="7">7月</option>
					  <option value="8">8月</option>
					  <option value="9">9月</option>
					  <option value="10">10月</option>
					  <option value="11">11月</option>
					  <option value="12">12月</option>
					</select> 
					<input type="button" value="查询" class="zs-btn" ng-click="getMonitorDataValidationStatisticsTotal('0')">  		
				</td>			  
	        </tr>   
			<tr ng-show="showEvent==true" ng-repeat="curRow in noPowerList" class="{{ isDoubleNum($index) ? 'even':'' }}">
	    		<td class="text" align="right" style="text-align:right;">
	    			<label ng-bind="curRow.TIME_NUM"></label>
	    			：
	    		</td>
		       	<td align="center">
		       		<input type="text" date-hour-time-picker class="zs-input"  ng-model="curRow.NO_POWER_START_TIME" ng-blur="checkErr(curRow);" placeholder="开始时间" />
		       		<a>~</a>
		       		<input type="text" date-hour-time-picker class="zs-input"  ng-model="curRow.NO_POWER_END_TIME" ng-blur="checkErr(curRow);" placeholder="结束时间">
		       		<input ng-show="$index < noPowerList.length-1" style="margin-left: 7px" type="button" class="zs-btn" value="修改" ng-click="onSubmitEditTimeSpanClick(curRow,noPowerList)"/>
		       		<input ng-show="$index < noPowerList.length-1" style="margin-left: 7px" type="button" class="zs-btn" value="删除" ng-click="onDeleteTimeSpanClick(curRow)"/>
		       		<input ng-show="$index == noPowerList.length-1" style="margin-left: 7px" type="button" class="zs-btn" value="新增" ng-click="onSubmitCreateNoPowerClick(curRow.MN,curRow)"/>
		       		<input ng-show="curRow.isNew" type="button" value="手动统计" class="zs-btn" ng-click="onManualClick()">  
		       	</td>
	    	</tr> 			    			   
        </tbody>
    </table>
    
    <div style="border-top: 1px solid #F3F3F3;padding-top: 15px;margin-top: 15px;"> 
		<div  class="zs-itabs" id="listdata">
			<ul class="idTabs">
				<!-- <li><a href='#DeviceOperation' ng-click="isShowEvent('1')">设备运转率统计</a></li> -->
				<li><a href='#MNOnline' ng-click="isShowEvent('2')">数采仪在线率统计</a></li>
				<li><a href='#DataTransferValidate' ng-click="isShowEvent('0')">数据传输有效率统计</a></li>
			</ul>
	 	</div>
	   	
	   	<!-- 设备运转率统计 -->
	   	<!-- <div id="DeviceOperation">
	   		<div style="overflow:auto;height:500px">
		   		<table class="zs-form-tabs">
					<thead>
			            <tr>
			                <th class="head" style="text-align: center;" >在线监测设备</th>
			                <th class="head" style="text-align: center;" >设备编号</th>
			                <th class="head" style="text-align: center;" >累积故障时间（小时）</th>
			                <th class="head" style="text-align: center;" >故障次数</th>
			                <th class="head" style="text-align: center;" >站点运行时间（小时）</th>
			                <th class="head" style="text-align: center;" >平均无故障时间（小时）</th>  
			                <th class="head" style="text-align: center;" >设备运转率</th>
			            </tr>
			        </thead>
			        <tbody>
			        	<tr ng-repeat="curRow in deviceOprRateList" class="{{ isDoubleNum($index) ? 'even':'' }}">
			            	<td class="center"><a><label ng-bind="curRow.DEVICE_NAME"></label></a></td>
			            	<td class="center"><a><label ng-bind="curRow.DEVICE_NUM"></label></a></td>
			            	<td class="center"><a><label>{{curRow.DEVICE_FAILURE_TIME}}</label></a></td>
			            	<td class="center"><a><label>{{curRow.DEVICE_FAILURE_NUM}}</label></a></td>
			            	<td class="center"><a><label>{{curRow.STATION_OPERATE_TIME}}</label></a></td>
			            	<td class="center"><a><label>{{curRow.DEVICE_MTBS}}</label></a></td>
			            	<td class="center"><a><label ng-bind="curRow.DEVICE_OPRERATE_RATE|percent"></label></a></td>
			            </tr> 
			        </tbody>
				</table>
			</div>
	   	</div>   	-->
	   	
	   	<!-- 数采仪在线率统计 -->
	   	<div id="MNOnline">
	   		<div style="overflow:auto;height:500px">
		   		<table class="zs-form-tabs">
					<thead>
			            <tr>
			                <th class="head" style="text-align: center;" >数采仪编号</th>
			                <th class="head" style="text-align: center;" >累积掉线时间（小时）</th>
			                <th class="head" style="text-align: center;" >累积在线时间（小时）</th>
			                <th class="head" style="text-align: center;" >掉线次数</th>
			                <th class="head" style="text-align: center;" >站点运行时间</th>
			                <th class="head" style="text-align: center;" >数采仪在线率</th>  
			            </tr>
			        </thead>
			        <tbody>
			        	<tr class="{{ isDoubleNum($index) ? 'even':'' }}">
			            	<td class="center"><a><label ng-bind="mnOnlineRate.MN"></label></a></td>
			            	<td class="center"><a><label ng-bind="mnOnlineRate.OFFLINE_TIME"></label></a></td>	   
			            	<td class="center"><a><label ng-bind="mnOnlineRate.ONLINE_TIME"></label></a></td>
			            	<td class="center"><a><label ng-bind="mnOnlineRate.OFFLINE_NUM"></label></a></td>
			            	<td class="center"><a><label ng-bind="mnOnlineRate.STATION_OPRERATE_TIME"></label></a></td>
			            	<td class="center"><a><label ng-bind="mnOnlineRate.ONLINE_RATE|percent"></label></a></td>          	
			            </tr>  
			        </tbody>
				</table>
			</div>
	   	</div>
	   	<!-- 数据传输有效率统计 -->
	   	<div id="DataTransferValidate" style="display:none;">
	   		<div style="overflow:auto;height:500px">
		   		<table class="zs-form-tabs">
					<thead>
			            <tr>
			                <th style="text-align: center;" >实收数据个数</th>
			                <th style="text-align: center;" >应收数据个数</th>
			                <th style="text-align: center;" >传输率</th>
			                <th style="text-align: center;" >实收有效数据组数</th> 
			                <th style="text-align: center;" >应收有效数据组数</th>
			                <th style="text-align: center;" >有效率</th>   
			                <th style="text-align: center;" >传输有效率</th>
			            </tr>
			        </thead>
			        <tbody>
			            <tr class="{{ isDoubleNum($index) ? 'even':'' }}">
			            	<td class="center"><a><label ng-bind="transferValidate.REAL_DATANUM"></label></a></td>
			            	<td class="center"><a><label ng-bind="transferValidate.RECEIVABLE_DATANUM"></label></a></td>	
			            	<td class="center"><a><label ng-bind="transferValidate.TRANSFER_RATE|percent"></label></a></td>
			            	<td class="center"><a><label ng-bind="transferValidate.REALVALIDATE_PACKETNUM"></label></a></td>
			            	<td class="center"><a><label ng-bind="transferValidate.RECEIVABLEVALIDATE_PACKETNUM"></label></a></td>
			            	<td class="center"><a><label ng-bind="transferValidate.VALIDATE_RATE|percent"></label></a></td>
			            	<td class="center"><a><label ng-bind="transferValidate.TRANSFER_VALIDATE_RATE|percent"></label></a></td>          	
			            </tr>  
			        </tbody>
				</table>
			</div>
	   	</div>
  	</div>
</div>

<div style="display: none" id="taskList">
	<div ui-view></div>
</div>